<?php /* Smarty version 2.6.16, created on 2009-05-19 01:00:49
         compiled from admin/language/manager.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'admin/language/manager.html', 2, false),array('function', 'messages', 'admin/language/manager.html', 62, false),array('function', 'language', 'admin/language/manager.html', 66, false),array('modifier', 'date_format', 'admin/language/manager.html', 100, false),array('modifier', 'replace', 'admin/language/manager.html', 104, false),)), $this); ?>
<?php if ($this->_tpl_vars['bDoRefresh']): ?>
<script type="text/javascript" language="javascript">window.top.location.href='<?php echo smarty_function_url(array('link' => 'admin.language.manager'), $this);?>
'</script>
<?php endif; ?>

<?php echo '
<script type="text/javascript">

function forumRedirect(usergroupid)
{
	task = eval("document.cpform.u" + usergroupid + ".options[document.cpform.u" + usergroupid + ".selectedIndex].value");

	switch(task)
	{
	'; ?>

		case 'phrases':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.phrases'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'content':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.phrases','content' => 'true'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'default':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.manager'), $this);?>
default_"+ usergroupid +"/";
		break;
		case 'edit':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.edit'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'delete':
		<?php echo '
		if ( sure() )
		{
		'; ?>

			window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.manager'), $this);?>
deleteid_"+ usergroupid +"/";
		<?php echo '
		}
		else
		{
			return false;
		}
		'; ?>

		break;
		case 'missing':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.missing'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'options':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.options'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'missing-options':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.missing-options'), $this);?>
id_"+ usergroupid +"/";
		break;
		case 'duplicate-options':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.language.duplicate-options'), $this);?>
id_"+ usergroupid +"/";
		break;
		default:
			return false;
		break;
	<?php echo '
	}
}

</script>
'; ?>

<?php echo smarty_function_messages(array(), $this);?>

<form method="post" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" name="cpform" id="cpform">
<table cellspacing="0" cellpadding="0" class="forumline" style="width:100%;">
<tr>
	<td colspan="7" class="row-header"><span><?php echo smarty_function_language(array('text' => 'menu.language.manager'), $this);?>
</span></td>
</tr>
<tr>
	<th>
		<?php echo smarty_function_language(array('text' => 'language'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'language_code'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'language_charset'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'language_added_on'), $this);?>

	</td>
	<th>
		<?php echo smarty_function_language(array('text' => 'language_added_by'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'language_actions'), $this);?>

	</th>
</tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aItem']):
?>
<tr>
	<td class="row1">
		<b><?php echo $this->_tpl_vars['aItem']['title']; ?>
</b>
	</td>
	<td class="row1">
		<?php echo $this->_tpl_vars['aItem']['languagecode']; ?>

	</td>
	<td class="row1">
		<?php echo $this->_tpl_vars['aItem']['charset']; ?>

	</td>
	<td class="row1">
		<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['sDateFormat']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['sDateFormat'])); ?>

	</td>
	<td class="row1">
	<?php if ($this->_tpl_vars['aItem']['created']): ?>
		<a href="http://<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['site'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'http://', '') : smarty_modifier_replace($_tmp, 'http://', '')); ?>
"><?php echo $this->_tpl_vars['aItem']['created']; ?>
</a>
	<?php else: ?>
	N/A
	<?php endif; ?>
	</td>
	<td class="row1" style="text-align:right;">
		<select name="u<?php echo $this->_tpl_vars['aItem']['id']; ?>
" onchange="forumRedirect(<?php echo $this->_tpl_vars['aItem']['id']; ?>
);" style="width:175px;">
			<option value="edit"><?php echo smarty_function_language(array('text' => 'language_edit_settings'), $this);?>
</option>
			<option value="phrases"><?php echo smarty_function_language(array('text' => 'language_edit_phrases'), $this);?>
</option>
			<option value="options"><?php echo smarty_function_language(array('text' => 'Mod_Language.edit_options'), $this);?>
</option>
			<option value="content"><?php echo smarty_function_language(array('text' => 'Mod_Language.edit_site_content'), $this);?>
</option>
			<option value="missing"><?php echo smarty_function_language(array('text' => 'Mod_Language.find_missing_phrases'), $this);?>
</option>
			<option value="missing-options"><?php echo smarty_function_language(array('text' => 'Mod_Language.find_missing_options'), $this);?>
</option>
			<option value="duplicate-options"><?php echo smarty_function_language(array('text' => 'Mod_Language.find_duplicate_options'), $this);?>
</option>
			<?php if (! $this->_tpl_vars['aItem']['default']): ?>
			<option value="default"><?php echo smarty_function_language(array('text' => 'language_set_as_default'), $this);?>
</option>
			<?php if ($this->_tpl_vars['aItem']['id'] != '1'): ?>
			<option value="delete"><?php echo smarty_function_language(array('text' => 'delete'), $this);?>
</option>
			<?php endif; ?>
			<?php endif; ?>
		</select>
		<input type="button" value="<?php echo smarty_function_language(array('text' => 'go'), $this);?>
" name="go" onclick="forumRedirect(<?php echo $this->_tpl_vars['aItem']['id']; ?>
);" />
	</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
     <td colspan="7" class="catBottom" style="text-align:center;">
     	<input type="button" name="add" value="<?php echo smarty_function_language(array('text' => 'Mod_Language.create_new_language'), $this);?>
" onclick="window.location.href='<?php echo smarty_function_url(array('link' => 'admin.language.create'), $this);?>
';" />
		<input type="button" name="add" value="<?php echo smarty_function_language(array('text' => 'upload_new_language_package'), $this);?>
" onclick="window.location.href='<?php echo smarty_function_url(array('link' => 'admin.language.add'), $this);?>
';" />
		<input type="button" name="add" value="<?php echo smarty_function_language(array('text' => 'Mod_Language.modify_collation'), $this);?>
" onclick="window.location.href='<?php echo smarty_function_url(array('link' => 'admin.language.collation'), $this);?>
';" />
     </td>
</tr>
</table>
</form>